﻿using Caliburn.Micro;
using SD.Infrastructure.WPF.Caliburn.Aspects;
using System;
using System.Collections.ObjectModel;

namespace SlamDunk.MES.Presentation.Models.NotifyModels
{
    /// <summary>
    /// 成品质检统计模型
    /// </summary>
    public class ExecutionPlanInspectionSummaryNm : PropertyChangedBase
    {
        #region 产品Id —— Guid MaterialId
        /// <summary>
        /// 产品Id
        /// </summary>
        [DependencyProperty]
        public Guid MaterialId { get; set; }
        #endregion

        #region 产品编号 —— string MaterialNo
        /// <summary>
        /// 产品编号
        /// </summary>
        [DependencyProperty]
        public string MaterialNo { get; set; }
        #endregion

        #region 产品名称 —— string MaterialName
        /// <summary>
        /// 产品名称
        /// </summary>
        [DependencyProperty]
        public string MaterialName { get; set; }
        #endregion

        #region 生产数量 —— decimal ProductionQuantity
        /// <summary>
        /// 生产数量
        /// </summary>
        [DependencyProperty]
        public decimal ProductionQuantity { get; set; }
        #endregion

        #region 合格数量 —— decimal QualifiedQuantity
        /// <summary>
        /// 合格数量
        /// </summary>
        [DependencyProperty]
        public decimal QualifiedQuantity { get; set; }
        #endregion

        #region 样品数量 —— decimal SampleQuantity
        /// <summary>
        /// 样品数量
        /// </summary>
        [DependencyProperty]
        public decimal SampleQuantity { get; set; }
        #endregion

        #region 人员工时 —— decimal Manhour
        /// <summary>
        /// 人员工时
        /// </summary>
        [DependencyProperty]
        public decimal? Manhour { get; set; }
        #endregion

        #region 设备台时 —— decimal Machinehour
        /// <summary>
        /// 设备台时
        /// </summary>
        [DependencyProperty]
        public decimal? Machinehour { get; set; }
        #endregion

        #region 良品率 —— decimal QualifiedRate
        /// <summary>
        /// 良品率
        /// </summary>
        [DependencyProperty]
        public decimal QualifiedRate { get; set; }
        #endregion

        #region 开始时间 — DateTime PlanStartTime
        /// <summary>
        /// 开始时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanStartTime { get; set; }
        #endregion

        #region 结束时间 — DateTime PlanEndTime
        /// <summary>
        /// 结束时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanEndTime { get; set; }
        #endregion

        #region 成品质检统计明细模型 —— ExecutionPlanInspectionDetailReports
        /// <summary>
        /// 成品质检统计明细模型
        /// </summary>
        [DependencyProperty]
        public ObservableCollection<ExecutionPlanInspectionSummaryDetailNm> ExecutionPlanInspectionDetailReports { get; set; }
        #endregion
    }
}
